<?php
namespace App\Http\Controllers\Seekies\Admin;

use App\Http\Controllers\Admin\CommentController;
use App\Repositories\Seekies\SeekRelevantRepository;

class SeekiesController extends CommentController{

    /**
     * 定义SeekRelevantRepository存储对象
     * @var SeekRelevantRepository
     */
    private $_repository;

    public function __construct(SeekRelevantRepository $repository)
    {
        parent::__construct();
        $this->_repository = $repository;
    }

    public function index()
    {
        $data['list'] = $this->_repository->getPageSeekInfo();
        $data['count'] = $this->_repository->getSeekCount();
        return view('admin.seekies.index', [ 'data' => compact('data') ]);
    }

}